package com.jiuqi.irs.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="TB_CANCEL"
 *     
*/
public class TbCancel implements Serializable {

    private String cancelGuid;
    private String orgGuid;
    private String cancelState;
    private String cancelYear;
    private String startNumber;
    private String endNumber;
    private String useYear;
    private String useStartNumber;
    private String useEndNumber;
    private String useQuantity;
    private String unUsedQuantity;
    private String invalidQuantity;
    private BigDecimal cutSum;
    private BigDecimal gatherSum;
    private String handleTime;
    private String handlePerson;
    private String reserved1;
    private String reserved2;
    private String reserved3;
	
	public String getCancelGuid() {
		return cancelGuid;
	}

	public void setCancelGuid(String cancelGuid) {
		this.cancelGuid = cancelGuid;
	}

	public String getOrgGuid() {
		return orgGuid;
	}

	public void setOrgGuid(String orgGuid) {
		this.orgGuid = orgGuid;
	}

	public String getCancelState() {
		return cancelState;
	}

	public void setCancelState(String cancelState) {
		this.cancelState = cancelState;
	}

	public String getCancelYear() {
		return cancelYear;
	}

	public void setCancelYear(String cancelYear) {
		this.cancelYear = cancelYear;
	}

	public String getStartNumber() {
		return startNumber;
	}

	public void setStartNumber(String startNumber) {
		this.startNumber = startNumber;
	}

	public String getEndNumber() {
		return endNumber;
	}

	public void setEndNumber(String endNumber) {
		this.endNumber = endNumber;
	}

	public String getUseYear() {
		return useYear;
	}

	public void setUseYear(String useYear) {
		this.useYear = useYear;
	}

	public String getUseStartNumber() {
		return useStartNumber;
	}

	public void setUseStartNumber(String useStartNumber) {
		this.useStartNumber = useStartNumber;
	}

	public String getUseEndNumber() {
		return useEndNumber;
	}

	public void setUseEndNumber(String useEndNumber) {
		this.useEndNumber = useEndNumber;
	}

	public String getUseQuantity() {
		return useQuantity;
	}

	public void setUseQuantity(String useQuantity) {
		this.useQuantity = useQuantity;
	}

	public String getUnUsedQuantity() {
		return unUsedQuantity;
	}

	public void setUnUsedQuantity(String unUsedQuantity) {
		this.unUsedQuantity = unUsedQuantity;
	}

	public String getInvalidQuantity() {
		return invalidQuantity;
	}

	public void setInvalidQuantity(String invalidQuantity) {
		this.invalidQuantity = invalidQuantity;
	}

	public BigDecimal getCutSum() {
		return cutSum;
	}

	public void setCutSum(BigDecimal cutSum) {
		this.cutSum = cutSum;
	}

	public BigDecimal getGatherSum() {
		return gatherSum;
	}

	public void setGatherSum(BigDecimal gatherSum) {
		this.gatherSum = gatherSum;
	}

	public String getHandleTime() {
		return handleTime;
	}

	public void setHandleTime(String handleTime) {
		this.handleTime = handleTime;
	}

	public String getHandlePerson() {
		return handlePerson;
	}

	public void setHandlePerson(String handlePerson) {
		this.handlePerson = handlePerson;
	}

	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	public TbCancel(String cancelGuid, String orgGuid, String cancelState,
			String cancelYear, String startNumber, String endNumber,
			String useYear, String useStartNumber, String useEndNumber,
			String useQuantity, String unUsedQuantity, String invalidQuantity,
			BigDecimal cutSum, BigDecimal gatherSum, String handleTime,
			String handlePerson, String reserved1, String reserved2,
			String reserved3) {
		super();
		this.cancelGuid = cancelGuid;
		this.orgGuid = orgGuid;
		this.cancelState = cancelState;
		this.cancelYear = cancelYear;
		this.startNumber = startNumber;
		this.endNumber = endNumber;
		this.useYear = useYear;
		this.useStartNumber = useStartNumber;
		this.useEndNumber = useEndNumber;
		this.useQuantity = useQuantity;
		this.unUsedQuantity = unUsedQuantity;
		this.invalidQuantity = invalidQuantity;
		this.cutSum = cutSum;
		this.gatherSum = gatherSum;
		this.handleTime = handleTime;
		this.handlePerson = handlePerson;
		this.reserved1 = reserved1;
		this.reserved2 = reserved2;
		this.reserved3 = reserved3;
	}

	public TbCancel() {
		
    }
    
    public TbCancel(String cancelGuid, String orgGuid) {
        this.cancelGuid = cancelGuid;
        this.orgGuid = orgGuid;
    }

	public String toString() {
		return new ToStringBuilder(this)
        .append("cancelGuid", getCancelGuid())
        .toString();
	}

	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cancelGuid == null) ? 0 : cancelGuid.hashCode());
		return result;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TbCancel other = (TbCancel) obj;
		if (cancelGuid == null) {
			if (other.cancelGuid != null)
				return false;
		} else if (!cancelGuid.equals(other.cancelGuid))
			return false;
		return true;
	}

   
}
